#include<iostream>
#include<fstream>

#include<string>

using namespace std;

void infile(){
	ifstream is;
	string msg;
	is.open("F:\\CPP\\file.txt",ios::in);
	is.seekg(36);
	is>>msg;
	cout<<msg<<endl;
	cout<<ios::in<<endl;
	is.close();
}

void outFile(){
	ofstream os;
	os.open("F:\\CPP\\file.txt",ios::out);

//	os.seekg(2,ios::cur);
	os<<"文件写入"<<endl;
	os.close();
}


int main16(){
//	infile();
	outFile();
	return 0;
}
